package com.hjm.project.TransactionAccumulation.transactionAccumulationD.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.hjm.project.TransactionAccumulation.transactionAccumulationD.mapper.TransactionAccumulationDMapper;
import com.hjm.project.TransactionAccumulation.transactionAccumulationD.domain.TransactionAccumulationD;
import com.hjm.project.TransactionAccumulation.transactionAccumulationD.service.ITransactionAccumulationDService;
import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 增量累计明细Service业务层处理
 * 
 * @author maker-platform
 * @date 2021-07-07
 */
@Service
public class TransactionAccumulationDServiceImpl implements ITransactionAccumulationDService 
{
    @Resource
    private TransactionAccumulationDMapper transactionAccumulationDMapper;

    /**
     * 查询增量累计明细
     * 
     * @param id 增量累计明细ID
     * @return 增量累计明细
     */
    @Override
    public TransactionAccumulationD selectTransactionAccumulationDById(Integer id)
    {
        return transactionAccumulationDMapper.selectTransactionAccumulationDById(id);
    }

    /**
     * 查询增量累计明细列表
     * 
     * @param transactionAccumulationD 增量累计明细
     * @return 增量累计明细
     */
    @Override
    public List<TransactionAccumulationD> selectTransactionAccumulationDList(TransactionAccumulationD transactionAccumulationD)
    {
        return transactionAccumulationDMapper.selectTransactionAccumulationDList(transactionAccumulationD);
    }

    /**
     * 新增增量累计明细
     * 
     * @param transactionAccumulationD 增量累计明细
     * @return 结果
     */
    @Override
    public int insertTransactionAccumulationD(TransactionAccumulationD transactionAccumulationD)
    {
        return transactionAccumulationDMapper.insertTransactionAccumulationD(transactionAccumulationD);
    }

    /**
     * 修改增量累计明细
     * 
     * @param transactionAccumulationD 增量累计明细
     * @return 结果
     */
    @Override
    public int updateTransactionAccumulationD(TransactionAccumulationD transactionAccumulationD)
    {
        return transactionAccumulationDMapper.updateTransactionAccumulationD(transactionAccumulationD);
    }

    /**
     * 删除增量累计明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTransactionAccumulationDByIds(String ids)
    {
        return transactionAccumulationDMapper.deleteTransactionAccumulationDByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除增量累计明细信息
     * 
     * @param id 增量累计明细ID
     * @return 结果
     */
    @Override
    public int deleteTransactionAccumulationDById(Integer id)
    {
        return transactionAccumulationDMapper.deleteTransactionAccumulationDById(id);
    }
}
